﻿using System.Runtime.Serialization;
using LiSA_Server.Base.NHibernate.Models;
using NHibernate.Mapping.ByCode.Conformist;

namespace LiSA_Service.ResearchProjects.Models
{
    [DataContract]
    public class ProjectSettings : Entity
    {
        [DataMember]
        public virtual bool UsesAcceptance { get; set; }
        [DataMember]
        public virtual bool UsesLiker { get; set; }
        [DataMember]
        public virtual int AppliesToStage { get; set; }
    }

    /// <summary>
    /// The ArticleFeedback mapping.
    /// </summary>
    public class ProjectSettingsMapping : ClassMapping<ProjectSettings>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectSettingsMapping"/> class.
        /// </summary>
        public ProjectSettingsMapping()
        {
            this.Property(x => x.UsesAcceptance);
            this.Property(x => x.UsesLiker);
            this.Property(x => x.AppliesToStage);
        }
    }
}